//login登录请求
import request from "@/utils/request"

enum API {
    LOGIN = "admin/acl/index/login",  //登录接口
    USEINFO="/admin/acl/index/info",  //获取用户信息
    LOGOUT ="/admin/acl/index/logout", //退出登录接口

}

//登录 接口
export const reqLogin = (data: any) => request.post(API.LOGIN, data)
//获取用户信息
export const reqUseInfo = () => request.get(API.USEINFO)
//退出登录
export const reqLogOut = () => request.post(API.LOGOUT)